import yaml

class YamlUtils:
    @staticmethod
    def read_yaml(yaml_path,node_name):
        with open(yaml_path,'r',encoding='utf-8') as file:
            data = yaml.safe_load(file)
            login_dict = data[node_name]
            print(login_dict)
            return list(login_dict.values())

if __name__ == '__main__':
    YamlUtils.read_yaml('../datas/test_login.yaml','case_login')
    YamlUtils.read_yaml('../datas/test_customer_list.yaml', 'case_customer_list')

